package com.zhq.blog.core.domain.user;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.zhq.blog.core.domain.BaseRepository;

public interface SaleRepository extends JpaRepository<Sale,Long>, BaseRepository<Sale>,JpaSpecificationExecutor<Sale> {

	@Query("select b from Sale b where deleted=0  order by id desc  ")
	Page<Sale> findAll(Pageable pageable);
}
